package com.kecheng.xinmei.service.impl;

import com.kecheng.xinmei.dao.IndexDao;
import com.kecheng.xinmei.entity.*;
import com.kecheng.xinmei.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author gaokecheng
 * @version 1.0
 * @date 2020/11/20 4:21 下午
 */
@Service
public class IndexSerciveImpl  implements IndexService {
    @Autowired
    private IndexDao indexDao;

    @Override
    public Doctor getDoctor() {
        return indexDao.getDoctor();
    }

    @Override
    public List<Lunbo> getLunbo() {
        return indexDao.getLunbo();
    }

    @Override
    public List<News> getNewsList() {
        return indexDao.getNewsList();
    }

    @Override
    public Topic getTopic() {
        return indexDao.getTopic();
    }

    @Override
    public List<Person> getTeacherList(Integer type) {
        return indexDao.getTeacherList(type);
    }

    @Override
    public Life getLife() {
        return indexDao.getLife();
    }

    @Override
    public Introduction getIntroduction() {
        return indexDao.getIntroduction();
    }

    @Override
    public List<Result> getResultList() {
        return indexDao.getResultList();
    }
}
